3.43 \(\int x^2 \sinh (a+\frac{b}{x^2}) \, dx\)

Optimal. Leaf size=86 \[ \frac{1}{3} \sqrt{\pi } e^{-a} b^{3/2} \text{Erf}\left (\frac{\sqrt{b}}{x}\right )-\frac{1}{3} \sqrt{\pi } e^a b^{3/2} \text{Erfi}\left (\frac{\sqrt{b}}{x}\right )+\frac{1}{3} x^3 \sinh \left (a+\frac{b}{x^2}\right )+\frac{2}{3} b x \cosh \left (a+\frac{b}{x^2}\right ) \]

[Out]

(2*b*x*Cosh[a + b/x^2])/3 + (b^(3/2)*Sqrt[Pi]*Erf[Sqrt[b]/x])/(3*E^a) - (b^(3/2)*E^a*Sqrt[Pi]*Erfi[Sqrt[b]/x])
/3 + (x^3*Sinh[a + b/x^2])/3

________________________________________________________________________________________

Rubi [A]  time = 0.0656322, antiderivative size = 86, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {5346, 5326, 5327, 5298, 2204, 2205} \[ \frac{1}{3} \sqrt{\pi } e^{-a} b^{3/2} \text{Erf}\left (\frac{\sqrt{b}}{x}\right )-\frac{1}{3} \sqrt{\pi } e^a b^{3/2} \text{Erfi}\left (\frac{\sqrt{b}}{x}\right )+\frac{1}{3} x^3 \sinh \left (a+\frac{b}{x^2}\right )+\frac{2}{3} b x \cosh \left (a+\frac{b}{x^2}\right ) \]

Antiderivative was successfully verified.

[In]

Int[x^2*Sinh[a + b/x^2],x]

[Out]

(2*b*x*Cosh[a + b/x^2])/3 + (b^(3/2)*Sqrt[Pi]*Erf[Sqrt[b]/x])/(3*E^a) - (b^(3/2)*E^a*Sqrt[Pi]*Erfi[Sqrt[b]/x])
/3 + (x^3*Sinh[a + b/x^2])/3

Rule 5346

Int[(x_)^(m_.)*((a_.) + (b_.)*Sinh[(c_.) + (d_.)*(x_)^(n_)])^(p_.), x_Symbol] :> -Subst[Int[(a + b*Sinh[c + d/
x^n])^p/x^(m + 2), x], x, 1/x] /; FreeQ[{a, b, c, d}, x] && IntegerQ[p] && ILtQ[n, 0] && IntegerQ[m]

Rule 5326

Int[((e_.)*(x_))^(m_)*Sinh[(c_.) + (d_.)*(x_)^(n_)], x_Symbol] :> Simp[((e*x)^(m + 1)*Sinh[c + d*x^n])/(e*(m +
 1)), x] - Dist[(d*n)/(e^n*(m + 1)), Int[(e*x)^(m + n)*Cosh[c + d*x^n], x], x] /; FreeQ[{c, d, e}, x] && IGtQ[
n, 0] && LtQ[m, -1]

Rule 5327

Int[Cosh[(c_.) + (d_.)*(x_)^(n_)]*((e_.)*(x_))^(m_), x_Symbol] :> Simp[((e*x)^(m + 1)*Cosh[c + d*x^n])/(e*(m +
 1)), x] - Dist[(d*n)/(e^n*(m + 1)), Int[(e*x)^(m + n)*Sinh[c + d*x^n], x], x] /; FreeQ[{c, d, e}, x] && IGtQ[
n, 0] && LtQ[m, -1]

Rule 5298

Int[Sinh[(c_.) + (d_.)*(x_)^(n_)], x_Symbol] :> Dist[1/2, Int[E^(c + d*x^n), x], x] - Dist[1/2, Int[E^(-c - d*
x^n), x], x] /; FreeQ[{c, d}, x] && IGtQ[n, 1]

Rule 2204

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[(F^a*Sqrt[Pi]*Erfi[(c + d*x)*Rt[b*Log[F], 2
]])/(2*d*Rt[b*Log[F], 2]), x] /; FreeQ[{F, a, b, c, d}, x] && PosQ[b]

Rule 2205

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[(F^a*Sqrt[Pi]*Erf[(c + d*x)*Rt[-(b*Log[F]),
 2]])/(2*d*Rt[-(b*Log[F]), 2]), x] /; FreeQ[{F, a, b, c, d}, x] && NegQ[b]

Rubi steps

\begin{align*} \int x^2 \sinh \left (a+\frac{b}{x^2}\right ) \, dx &=-\operatorname{Subst}\left (\int \frac{\sinh \left (a+b x^2\right )}{x^4} \, dx,x,\frac{1}{x}\right )\\ &=\frac{1}{3} x^3 \sinh \left (a+\frac{b}{x^2}\right )-\frac{1}{3} (2 b) \operatorname{Subst}\left (\int \frac{\cosh \left (a+b x^2\right )}{x^2} \, dx,x,\frac{1}{x}\right )\\ &=\frac{2}{3} b x \cosh \left (a+\frac{b}{x^2}\right )+\frac{1}{3} x^3 \sinh \left (a+\frac{b}{x^2}\right )-\frac{1}{3} \left (4 b^2\right ) \operatorname{Subst}\left (\int \sinh \left (a+b x^2\right ) \, dx,x,\frac{1}{x}\right )\\ &=\frac{2}{3} b x \cosh \left (a+\frac{b}{x^2}\right )+\frac{1}{3} x^3 \sinh \left (a+\frac{b}{x^2}\right )+\frac{1}{3} \left (2 b^2\right ) \operatorname{Subst}\left (\int e^{-a-b x^2} \, dx,x,\frac{1}{x}\right )-\frac{1}{3} \left (2 b^2\right ) \operatorname{Subst}\left (\int e^{a+b x^2} \, dx,x,\frac{1}{x}\right )\\ &=\frac{2}{3} b x \cosh \left (a+\frac{b}{x^2}\right )+\frac{1}{3} b^{3/2} e^{-a} \sqrt{\pi } \text{erf}\left (\frac{\sqrt{b}}{x}\right )-\frac{1}{3} b^{3/2} e^a \sqrt{\pi } \text{erfi}\left (\frac{\sqrt{b}}{x}\right )+\frac{1}{3} x^3 \sinh \left (a+\frac{b}{x^2}\right )\\ \end{align*}

Mathematica [A]  time = 0.087626, size = 84, normalized size = 0.98 \[ \frac{1}{3} \left (\sqrt{\pi } b^{3/2} (\cosh (a)-\sinh (a)) \text{Erf}\left (\frac{\sqrt{b}}{x}\right )-\sqrt{\pi } b^{3/2} (\sinh (a)+\cosh (a)) \text{Erfi}\left (\frac{\sqrt{b}}{x}\right )+x^3 \sinh \left (a+\frac{b}{x^2}\right )+2 b x \cosh \left (a+\frac{b}{x^2}\right )\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[x^2*Sinh[a + b/x^2],x]

[Out]

(2*b*x*Cosh[a + b/x^2] + b^(3/2)*Sqrt[Pi]*Erf[Sqrt[b]/x]*(Cosh[a] - Sinh[a]) - b^(3/2)*Sqrt[Pi]*Erfi[Sqrt[b]/x
]*(Cosh[a] + Sinh[a]) + x^3*Sinh[a + b/x^2])/3

________________________________________________________________________________________

Maple [A]  time = 0.036, size = 103, normalized size = 1.2 \begin{align*} -{\frac{{{\rm e}^{-a}}{x}^{3}}{6}{{\rm e}^{-{\frac{b}{{x}^{2}}}}}}+{\frac{{{\rm e}^{-a}}\sqrt{\pi }}{3}{\it Erf} \left ({\frac{1}{x}\sqrt{b}} \right ){b}^{{\frac{3}{2}}}}+{\frac{{{\rm e}^{-a}}bx}{3}{{\rm e}^{-{\frac{b}{{x}^{2}}}}}}+{\frac{{{\rm e}^{a}}{x}^{3}}{6}{{\rm e}^{{\frac{b}{{x}^{2}}}}}}+{\frac{{{\rm e}^{a}}bx}{3}{{\rm e}^{{\frac{b}{{x}^{2}}}}}}-{\frac{{{\rm e}^{a}}{b}^{2}\sqrt{\pi }}{3}{\it Erf} \left ({\frac{1}{x}\sqrt{-b}} \right ){\frac{1}{\sqrt{-b}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*sinh(a+b/x^2),x)

[Out]

-1/6*exp(-a)*x^3*exp(-b/x^2)+1/3*exp(-a)*Pi^(1/2)*erf(b^(1/2)/x)*b^(3/2)+1/3*exp(-a)*exp(-b/x^2)*b*x+1/6*exp(a
)*exp(b/x^2)*x^3+1/3*exp(a)*b*exp(b/x^2)*x-1/3*exp(a)*b^2*Pi^(1/2)/(-b)^(1/2)*erf((-b)^(1/2)/x)

________________________________________________________________________________________

Maxima [A]  time = 1.17987, size = 78, normalized size = 0.91 \begin{align*} \frac{1}{3} \, x^{3} \sinh \left (a + \frac{b}{x^{2}}\right ) + \frac{1}{6} \,{\left (x \sqrt{\frac{b}{x^{2}}} e^{\left (-a\right )} \Gamma \left (-\frac{1}{2}, \frac{b}{x^{2}}\right ) + x \sqrt{-\frac{b}{x^{2}}} e^{a} \Gamma \left (-\frac{1}{2}, -\frac{b}{x^{2}}\right )\right )} b \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*sinh(a+b/x^2),x, algorithm="maxima")

[Out]

1/3*x^3*sinh(a + b/x^2) + 1/6*(x*sqrt(b/x^2)*e^(-a)*gamma(-1/2, b/x^2) + x*sqrt(-b/x^2)*e^a*gamma(-1/2, -b/x^2
))*b

________________________________________________________________________________________

Fricas [B]  time = 1.78067, size = 697, normalized size = 8.1 \begin{align*} -\frac{x^{3} -{\left (x^{3} + 2 \, b x\right )} \cosh \left (\frac{a x^{2} + b}{x^{2}}\right )^{2} - 2 \, \sqrt{\pi }{\left (b \cosh \left (a\right ) \cosh \left (\frac{a x^{2} + b}{x^{2}}\right ) + b \cosh \left (\frac{a x^{2} + b}{x^{2}}\right ) \sinh \left (a\right ) +{\left (b \cosh \left (a\right ) + b \sinh \left (a\right )\right )} \sinh \left (\frac{a x^{2} + b}{x^{2}}\right )\right )} \sqrt{-b} \operatorname{erf}\left (\frac{\sqrt{-b}}{x}\right ) - 2 \, \sqrt{\pi }{\left (b \cosh \left (a\right ) \cosh \left (\frac{a x^{2} + b}{x^{2}}\right ) - b \cosh \left (\frac{a x^{2} + b}{x^{2}}\right ) \sinh \left (a\right ) +{\left (b \cosh \left (a\right ) - b \sinh \left (a\right )\right )} \sinh \left (\frac{a x^{2} + b}{x^{2}}\right )\right )} \sqrt{b} \operatorname{erf}\left (\frac{\sqrt{b}}{x}\right ) - 2 \,{\left (x^{3} + 2 \, b x\right )} \cosh \left (\frac{a x^{2} + b}{x^{2}}\right ) \sinh \left (\frac{a x^{2} + b}{x^{2}}\right ) -{\left (x^{3} + 2 \, b x\right )} \sinh \left (\frac{a x^{2} + b}{x^{2}}\right )^{2} - 2 \, b x}{6 \,{\left (\cosh \left (\frac{a x^{2} + b}{x^{2}}\right ) + \sinh \left (\frac{a x^{2} + b}{x^{2}}\right )\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*sinh(a+b/x^2),x, algorithm="fricas")

[Out]

-1/6*(x^3 - (x^3 + 2*b*x)*cosh((a*x^2 + b)/x^2)^2 - 2*sqrt(pi)*(b*cosh(a)*cosh((a*x^2 + b)/x^2) + b*cosh((a*x^
2 + b)/x^2)*sinh(a) + (b*cosh(a) + b*sinh(a))*sinh((a*x^2 + b)/x^2))*sqrt(-b)*erf(sqrt(-b)/x) - 2*sqrt(pi)*(b*
cosh(a)*cosh((a*x^2 + b)/x^2) - b*cosh((a*x^2 + b)/x^2)*sinh(a) + (b*cosh(a) - b*sinh(a))*sinh((a*x^2 + b)/x^2
))*sqrt(b)*erf(sqrt(b)/x) - 2*(x^3 + 2*b*x)*cosh((a*x^2 + b)/x^2)*sinh((a*x^2 + b)/x^2) - (x^3 + 2*b*x)*sinh((
a*x^2 + b)/x^2)^2 - 2*b*x)/(cosh((a*x^2 + b)/x^2) + sinh((a*x^2 + b)/x^2))

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{2} \sinh{\left (a + \frac{b}{x^{2}} \right )}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*sinh(a+b/x**2),x)

[Out]

Integral(x**2*sinh(a + b/x**2), x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{2} \sinh \left (a + \frac{b}{x^{2}}\right )\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*sinh(a+b/x^2),x, algorithm="giac")

[Out]

integrate(x^2*sinh(a + b/x^2), x)